{% block exfile %}{% endblock %}

{% extends "bootstrap/base.html" %}
{% import "bootstrap/wtf.html" as wtf %}

{% block title %}简历平台{% endblock %}

<!-- 主菜单 -->
{% block navbar %}
<div class="navbar navbar-default"  role="navigation">
  <div class="container">
    <div class="navbar-header">
      <button type="button" class="navbar-toggle"
      data-toggle="collapse" data-target=".navbar-collapse">
        <span class="sr-only">Toggle navigation</span>
        <span class="icon-bar"></span>
        <span class="icon-bar"></span>
        <span class="icon-bar"></span>
      </button>
      <a class="navbar-brand" href="/admin">
        <span class="glyphicon glyphicon-user"></span></a>
    </div>
    <div class="navbar-collapse collapse">
      <ul class="nav navbar-nav  me-auto">
        <li>
          <a href="/admined">
            <span class="glyphicon glyphicon-th"></span>管理主页</a>
        </li>
        <li><a href="/album">
            <span class="glyphicon glyphicon-picture"></span>照片相册</a>
        </li>
        <li>
          <a href="/initpwd">
            <span class="glyphicon glyphicon-refresh"></span>密码初始化</a>
        </li>
        <li>
          <a href="/initsys">
            <span class="glyphicon glyphicon-flash"></span>
            系统初始化
          </a>
        </li>
        <li>
          <a href="{{ url_for('logout') }}">
            <span class="glyphicon glyphicon-log-out"></span>退出</a>
        </li>
      </ul>
    </div>
  </div>
</div>
{% endblock %}

<!-- 页面 -->
{% block content %}
    <div id="alert">
        <!-- 显示flash提示框 -->
        {% for message in get_flashed_messages(with_categories = True) %}
            <div class="alert alert-{{ message[0] }} alert-dismissable">
                <button type="button" 
                        class="close" 
                        data-dismiss="alert" 
                        aria-hidden="true">
                    &times;
                </button>
                {{ message[1] }}
            </div>
         {% endfor %}
    </div>
    <div class="container">
        {% block page_content %}
        {% endblock %}
    </div>
    <div class="container">
        {% block footer %}
            <hr/>
            <div class="text-center text-muted">
                版权所有，免费使用<br />
                地址：新疆乌鲁木齐
            </div>
        {% endblock %}
    </div>
{% endblock %}
